home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 August (Alt)
/
CHIP 2005-08.1.iso
/
program
/
guvenlik
/
syslinux-3.07.exe
/
com32
/
lib
/
srand48.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
2004-11-10
|
274 b
|
17 lines
/*
* srand48.c
*/
#include <stdlib.h>
#include <stdint.h>
extern unsigned short __rand48_seed[3];
void srand48(long seedval)
{
__rand48_seed[0] = 0x330e;
__rand48_seed[1] = (unsigned short)seedval;
__rand48_seed[2] = (unsigned short)((uint32_t)seedval >> 16);
}